package com.demo.actuator.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * log4j日志级别
 * error > warn > info > debug
 */
@Slf4j
@RestController
public class LogController {

    @RequestMapping("/log")
    public void log(){
        log.debug("debug 日志");
        log.info("info 日志");
        log.warn("warn 日志");
        log.error("error 日志");
    }
}
